import { IFrame } from "./IFrame";
import { FlashFrame } from "./FlashFrame";
//class FrameManager

    export  class FrameManager
    {
       

        public static get flashFrame(): IFrame
        {
            if (FrameManager._flashFrame == null) 
            {
                FrameManager._flashFrame = new FlashFrame(24);
            }
            return FrameManager._flashFrame;
        }

        public static get timerFrame(): IFrame
        {
            if (FrameManager._timerFrame == null) 
            {
                FrameManager._timerFrame = new TimerFrame();
            }
            return FrameManager._timerFrame;
        }

        public static get mTimerFrame(): IFrame
        {
            if (FrameManager._mTimerFrame == null) 
            {
                FrameManager._mTimerFrame = new MTimerFrame();
            }
            return FrameManager._mTimerFrame;
        }

        private static /* var */_flashFrame: IFrame;

        private static /* var */_timerFrame: IFrame;

        private static /* var */_mTimerFrame: IFrame;
    }
